x11: Set background color bypassing colormaps
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Aug 2010 09:52:29 +0000 (11:52 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:33 +0000 (15:11 +0200)
commit571e749d60aaef991dcf8cad50d1cfeb4f9fdd12
tree7d83f05e6ab569be292429fa54776fd140473fae
parentf08254074cd3cc359f0a95b4a472a702b55c96cd
x11: Set background color bypassing colormaps

Direct and TrueColor visuals don't alloc colors, so they don't need to
fiddle with colormaps. Just copy the code that computes the pixel value
from gdkcolor-x11.c and use it. For other visual types, don't set the
background color and fallback to background = None.
gdk/x11/gdkwindow-x11.c